import { Column, Entity, ObjectID, ObjectIdColumn } from "typeorm";

@Entity()
export class Notices {
  // @ObjectIdColumn()
  // id: ObjectID;

  @Column()
  publisher: string;

  @Column()
  subscriber: string;

  @Column()
  pub_date: string;

  @Column()
  title: string;

  @Column()
  content: string;

  @ObjectIdColumn()
  _id: ObjectID
}